<? if(!empty($news)): ?>
	<h1>Izmena vesti #<?= $news['News']['id']?></h1>
<? else: ?>
	<h1>Nova vest</h1>
<? endif; ?>
<?= $this->Form->create('News', array('url'=>'/admin_news/save')) ?>
	<?= $this->Form->hidden('id', array('value'=>@$news['News']['id'])) ?>
	
	<?= $this->Form->label('title', "Naslov:") ?>
	<?= $this->Form->text('title', array('value'=>@$news['News']['title'], 'class'=>'large')) ?>
	
	<?= $this->Form->label('date', "Datum:") ?>
	<?= $this->Form->text('date', array('value'=>@$news['News']['date'], 'class'=>'datepicker')) ?>
	
	<?= $this->Form->label('content', "Sadržaj:") ?>
	<?= $this->Form->textarea('content', array('value'=>@$news['News']['content'], 'class'=>'editable')) ?>

	<br clear="all">
	<?= $this->Form->submit('Sačuvaj', array('div'=>false)) ?>
	<?= $this->Form->submit('Poništi', array('onclick'=>"location.href='/admin_news'", 'type'=>'button', 'div'=>false)) ?>
<?= $this->Form->end();
